#ifndef SETTINGS_PARSER_H
#define SETTINGS_PARSER_H

#include "files/directory.h"
#include "xml/xml_parser.h"

namespace Tvimeg
{
	class Settings;

	class SettingsParser : public XMLParser
	{
	public:
		SettingsParser(Settings& settings_in);

		bool			Parse(const File& file);

	private:
		virtual void	StartElement(const std::string& elementName, const XMLAttributes& attributes);
		virtual void	EndElement(const std::string& elementName);
		virtual void	CharacterData(const std::string& text);

		Settings&		settings;
		Directory		settingsDirectory;
	};
}

#endif // SETTINGS_PARSER_H
